package com.example.springbott.mapper;

import com.example.springbott.bean.MarketGoodsAttribute;
import com.example.springbott.bean.MarketGoodsAttributeExample;
import com.example.springbott.bean.zeng.CreateOfAttributes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketGoodsAttributeMapper {
    long countByExample(MarketGoodsAttributeExample example);

    int deleteByExample(MarketGoodsAttributeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketGoodsAttribute record);

    int insertSelective(MarketGoodsAttribute record);

    List<MarketGoodsAttribute> selectByExample(MarketGoodsAttributeExample example);

    MarketGoodsAttribute selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketGoodsAttribute record, @Param("example") MarketGoodsAttributeExample example);

    int updateByExample(@Param("record") MarketGoodsAttribute record, @Param("example") MarketGoodsAttributeExample example);

    int updateByPrimaryKeySelective(MarketGoodsAttribute record);

    int updateByPrimaryKey(MarketGoodsAttribute record);

    void insertAttributes(@Param("goodsId") int parseInt, @Param("attribute") String attribute, @Param("value") String value);

    void insertAttributesByZeng(@Param("goodsId") Integer id, @Param("attribute") String attribute, @Param("value") String value);

    void updateByPrimaryKeyByZeng(CreateOfAttributes attribute);
}